#include <Player.hpp>
#include <GameWorld.hpp>
#include <GameEngine.hpp>

Player::Player(GameWorld *world) : Entity("art/Player.png", world)
{
	sprite = new sf::Sprite;
	sprite->SetTexture(EE::GameEngine::textureManager.Load(id));
	sprite->SetPosition(400, 300);
}

Player::Player(float startx, float starty, GameWorld *world) : Entity("art/Player.png", world)
{
	sprite = new sf::Sprite;
	sprite->SetTexture(EE::GameEngine::textureManager.Load(id));
	sprite->SetPosition(startx, starty);
}

Player::~Player()
{
	EE::GameEngine::textureManager.Unload(id);
	delete sprite;
	sprite = NULL;
}
